From cd010b02b1c2f469766fab355a9d9269e627fca8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Thu, 22 May 2025 04:41:11 +0200 Subject: [PATCH] dbusServices/extensions: Remove custom stylesheet There is no custom styling left :-) Part-of: --- js/dbusServices/extensions/css/application.css | 0 .../extensions/extensionPrefsDialog.js | 17 ----------------- ...org.gnome.Shell.Extensions.src.gresource.xml | 1 - 3 files changed, 18 deletions(-) delete mode 100644 js/dbusServices/extensions/css/application.css diff --git a/js/dbusServices/extensions/css/application.css b/js/dbusServices/extensions/css/application.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/js/dbusServices/extensions/extensionPrefsDialog.js b/js/dbusServices/extensions/extensionPrefsDialog.js index ab7e684d7..967288d52 100644 --- a/js/dbusServices/extensions/extensionPrefsDialog.js +++ b/js/dbusServices/extensions/extensionPrefsDialog.js @@ -1,6 +1,4 @@ import Adw from 'gi://Adw?version=1'; -import Gdk from 'gi://Gdk?version=4.0'; -import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Gtk from 'gi://Gtk?version=4.0'; @@ -99,8 +97,6 @@ class ExtensionPrefsErrorPage extends Adw.PreferencesPage { constructor(extension, error) { super(); - this._addCustomStylesheet(); - const {uuid, name, url} = extension.metadata; let label = @@ -134,17 +130,4 @@ class ExtensionPrefsErrorPage extends Adw.PreferencesPage { ]; this._errorMarkdown = lines.join('\n'); } - - _addCustomStylesheet() { - let provider = new Gtk.CssProvider(); - let uri = 'resource:///org/gnome/Shell/Extensions/css/application.css'; - try { - provider.load_from_file(Gio.File.new_for_uri(uri)); - } catch (e) { - logError(e, 'Failed to add application style'); - } - Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(), - provider, - Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - } } diff --git a/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml b/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml index a233986a8..03ff4125a 100644 --- a/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml +++ b/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml @@ -18,7 +18,6 @@ - css/application.css ui/extension-error-page.ui -- 2.39.5